<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
		<style type="text/css">
			table{
				border-collapse: collapse;
			}
			tr,td{
				border: 1px solid black ;
				width: 200px;
			}
		</style>
	</head>
	<body>
		<table ><!-- border="1px" cellspacing="0px" width="200px" -->
			<tr>
				<td>序号</td>
				<td>名称</td>
				<td>价格</td>
				<td>数量</td>
			</tr>
			<tr>
				<td>1</td>
				<td>apple</td>
				<td>4400</td>
				<td>13</td>
			</tr>
			<tr>
				<td>2</td>
				<td>nokia</td>
				<td>2300</td>
				<td>22</td>
			</tr>
			<tr>
				<td>3</td>
				<td>asmsung</td>
				<td>3500</td>
				<td>35</td>
			</tr>
			<tr>
				<td>4</td>
				<td>heimei</td>
				<td>2500</td>
				<td>27</td>
			</tr>
		</table>
		
		<script src="../js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				$('tr:first').css('background-color', 'yellow');
				//$('tr:even:gt(0)').css('background-color', 'green');
				$('tr:gt(0):odd)').css('background-color', 'green');
			});
		</script>
	</body>
</html>
